package com.ypj.indusynergyems.dao.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("dept")
public class DeptEntity {
    /**
     * company_id
     */
    private Integer companyId;

    /**
     * department_id
     */
    private Integer deptId;

    /**
     * department_name
     */
    private String name;

    /**
     * staut
     */
    @TableField(fill = FieldFill.INSERT)
    private Integer status;

    /**
     * creator
     */
    private String creator;

    /**
     * create_time
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * modifier
     */
    private String modifier;

    /**
     * update_time
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * post_id
     */
    private Integer postId;


}
